package com.manshu.manshuweb.common;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.servlet.*;
import java.io.IOException;

@Slf4j
public class MyFilter2 implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        log.info("我是MyFilter2过滤器 start");
        log.info("MyFilter2过滤器"+servletRequest.getAttribute("name"));
        filterChain.doFilter(servletRequest,servletResponse);
        log.info("我是MyFilter2过滤器 end");
    }
}
